package cn.edu.uestc.smgt.util;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.edu.uestc.smgt.pojo.Manager;

public class LoginUtil {
	public static void managerLoginTest(HttpSession session, HttpServletResponse resp) throws IOException {
		Manager mgr = (Manager) session.getAttribute("manager");
		if (mgr == null) {
			// 跳转到登录界面
			System.out.println("用户为空");
			resp.sendRedirect("/studentmanagement/login.html");
			return;
		}

	}

}
